From: Jay Belanger Date: Fri, 3 Jul 2009 01:42:02 +0000 (+0000) Subject: (math-use-emacs-fn): Make sure that the number is formatted correctly. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11675 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=569f2ca94d859cb4e5937884ce5c3c7add592cd4;p=emacs.git (math-use-emacs-fn): Make sure that the number is formatted correctly. --- diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el index c8e8cc1f052..0f934e0af77 100644 --- a/lisp/calc/calc-math.el +++ b/lisp/calc/calc-math.el @@ -106,7 +106,11 @@ If this can't be done, return NIL." (number-to-string (funcall fn (string-to-number - (let ((calc-number-radix 10)) + (let + ((calc-number-radix 10) + (calc-float-format (list 'float calc-internal-prec)) + (calc-group-digits nil) + (calc-point-char ".")) (math-format-number (math-float x))))))) (error nil))))))